package com.fun.feifun.modules.business.model;

import java.math.BigDecimal;
import com.baomidou.mybatisplus.annotation.IdType;
import java.time.LocalDateTime;
import com.baomidou.mybatisplus.annotation.TableId;
import com.fun.feifun.base.BaseEntity;
import com.baomidou.mybatisplus.annotation.TableField;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 金额历史记录
 * </p>
 *
 * @author wkf
 * @since 2024-05-29
 */
@Data
@EqualsAndHashCode(callSuper = true)
@Accessors(chain = true)
@ApiModel(value="BusinessAmountRecord对象", description="金额历史记录")
public class BusinessAmountRecord extends BaseEntity {

    private static final long serialVersionUID=1L;

    @ApiModelProperty(value = "用户id")
    private Long userId;

    @ApiModelProperty(value = "备注")
    private String remake;

    @ApiModelProperty(value = "变动之前金额")
    @TableField("beforeAmount")
    private BigDecimal beforeAmount;

    @ApiModelProperty(value = "变动金额")
    private BigDecimal amount;

    @ApiModelProperty(value = "变动之后金额")
    @TableField("afterAmount")
    private BigDecimal afterAmount;

    @ApiModelProperty(value = "0未删除，1已经删除")
    private Boolean delFlag;


}
